package com.ebeitech.library.domain;

import android.view.View;

import com.ebeitech.library.ui.CommonItemView;

/**
 * Created by alice on 2017/10/31.
 */
public class CommonItem {

	private String groupId;
	private String title;
	private String hint;
	private String value;
	private View.OnClickListener viewClickListener;
	private CommonItemView.ItemStyle itemStyle;
	private boolean isArrowViewVisible;
	private int drawableId = -1;
	private View.OnClickListener imageClickListener;
//	private List<DataHolder> mediaDataHolders;
	private boolean isTextHighlight;

	public CommonItem() {}

	public CommonItem(String title) {
		this.title = title;
	}

	public CommonItem(String title, String value) {
		this.title = title;
		this.value = value;
	}

	@Override
	public boolean equals(Object o) {
		if (o == null || !(o instanceof  CommonItem)) return false;
		if ((groupId == null && ((CommonItem) o).groupId == null) ||
				(groupId != null && groupId.equals(((CommonItem) o).groupId))) {
			return title == ((CommonItem) o).title;
		}
		return false;
	}

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getHint() {
		return hint;
	}

	public void setHint(String hint) {
		this.hint = hint;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public View.OnClickListener getViewClickListener() {
		return viewClickListener;
	}

	public void setViewClickListener(View.OnClickListener viewClickListener) {
		this.viewClickListener = viewClickListener;
	}

	public CommonItemView.ItemStyle getItemStyle() {
		return itemStyle;
	}

	public void setItemStyle(CommonItemView.ItemStyle itemStyle) {
		this.itemStyle = itemStyle;
	}

	public boolean isArrowViewVisible() {
		return isArrowViewVisible;
	}

	public void setArrowViewVisible(boolean isArrowViewVisible) {
		this.isArrowViewVisible = isArrowViewVisible;
	}

	public int getDrawableId() {
		return drawableId;
	}

	public void setDrawableId(int drawableId) {
		this.drawableId = drawableId;
	}

	public View.OnClickListener getImageClickListener() {
		return imageClickListener;
	}

	public void setImageClickListener(View.OnClickListener imageClickListener) {
		this.imageClickListener = imageClickListener;
	}

	/*public List<DataHolder> getMediaDataHolders() {
		return mediaDataHolders;
	}

	public void setMediaDataHolders(List<DataHolder> mediaDataHolders) {
		this.mediaDataHolders = mediaDataHolders;
	}*/

	public boolean isTextHighlight() {
		return isTextHighlight;
	}

	public void setTextHighlight(boolean isTextHighlight) {
		this.isTextHighlight = isTextHighlight;
	}

}
